package com.airnews.ticket.ui.flight;

import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;

import com.airnews.ticket.R;
import com.airnews.ticket.ui.BaseActivity;
import com.mobclick.android.MobclickAgent;

public class AnimInsuranceDetailOne  extends BaseActivity  implements OnClickListener{

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.fly_anim_insurance_detail_one);
		// 删除窗口背景
        getWindow().setBackgroundDrawable(null);
		activityList.add(this);
		
		findViewById(R.id.backBut).setOnClickListener(this);
	}
	
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
			case R.id.backBut: 
				Intent intentR = new Intent();
				intentR.setClass(AnimInsuranceDetailOne.this, AnimInsuranceDetail.class);
				startActivity(intentR);
				break;
		}
	}
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event) {
		// TODO Auto-generated method stub
		if(keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0){
			Intent intent3 = new Intent();
			intent3.setClass(AnimInsuranceDetailOne.this, AnimInsuranceDetail.class);
			startActivity(intent3);
			return true;
		}
		return super.onKeyDown(keyCode, event);
	} 
	
	public void onResume() {     
		super.onResume();     
		MobclickAgent.onResume(this); 
	}  
	
	public void onPause() {     
		super.onPause();     
		MobclickAgent.onPause(this); 
	}  
}
